package com.glory.hikvisionmobile.bean.DataCollect;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class XEdcItemSetLinesBean implements Parcelable,Serializable {


    private String edcItemLineName; //采集像名称
    private String edcItemLineDesc;
    private String dataType; //采集类型
    private String dcName;//采集项行数label名称
    private String range;//操作范围
    private String isMandatory;//是否必填
    private String minValue;
    private String midValue;
    private String maxValue;
    private String isDestructive;
    private String isAutoDc;
    private String isShowRemark;
    private String edcSampleType;
    private long edcItemCount;
    private String edcItemDesc;
    private long edccomponentCount;
    private String edcCompDesc;
    private long edcSiteCount;
    private String edcSiteDesc;
    private List<XPdaComponentBean> xPdaComponents;
    private List<DcModelBean> XPdaDcModels;

    public String getEdcItemLineDesc() {
        return edcItemLineDesc == null ? "" : edcItemLineDesc;
    }

    public void setEdcItemLineDesc(String edcItemLineDesc) {
        this.edcItemLineDesc = edcItemLineDesc;
    }

    public String getMinValue() {
        return minValue == null ? "" : String.valueOf(minValue);
    }

    public void setMinValue(String minValue) {
        this.minValue = minValue;
    }

    public String getMidValue() {
        return midValue == null ? "" : String.valueOf(midValue);
    }

    public void setMidValue(String midValue) {
        this.midValue = midValue;
    }

    public String getMaxValue() {
        return maxValue == null ? "" : String.valueOf(maxValue);
    }

    public void setMaxValue(String maxValue) {
        this.maxValue = maxValue;
    }

    public String getIsDestructive() {
        return isDestructive == null ? "" : String.valueOf(isDestructive);
    }

    public void setIsDestructive(String isDestructive) {
        this.isDestructive = isDestructive;
    }

    public String getIsAutoDc() {
        return isAutoDc == null ? "" : String.valueOf(isAutoDc);
    }

    public void setIsAutoDc(String isAutoDc) {
        this.isAutoDc = isAutoDc;
    }

    public String getIsShowRemark() {
        return isShowRemark == null ? "" : String.valueOf(isShowRemark);
    }

    public void setIsShowRemark(String isShowRemark) {
        this.isShowRemark = isShowRemark;
    }

    public String getEdcSampleType() {
        return edcSampleType == null ? "" : String.valueOf(edcSampleType);
    }

    public void setEdcSampleType(String edcSampleType) {
        this.edcSampleType = edcSampleType;
    }


    public String getEdcItemDesc() {
        return edcItemDesc == null ? "" : String.valueOf(edcItemDesc);
    }

    public void setEdcItemDesc(String edcItemDesc) {
        this.edcItemDesc = edcItemDesc;
    }

    public long getEdcItemCount() {
        return edcItemCount;
    }

    public void setEdcItemCount(long edcItemCount) {
        this.edcItemCount = edcItemCount;
    }

    public long getEdccomponentCount() {
        return edccomponentCount;
    }

    public void setEdccomponentCount(long edccomponentCount) {
        this.edccomponentCount = edccomponentCount;
    }

    public long getEdcSiteCount() {
        return edcSiteCount;
    }

    public void setEdcSiteCount(long edcSiteCount) {
        this.edcSiteCount = edcSiteCount;
    }

    public String getEdcCompDesc() {
        return edcCompDesc == null ? "" : String.valueOf(edcCompDesc);
    }

    public void setEdcCompDesc(String edcCompDesc) {
        this.edcCompDesc = edcCompDesc;
    }


    public String getEdcSiteDesc() {
        return edcSiteDesc == null ? "" : String.valueOf(edcSiteDesc);
    }

    public void setEdcSiteDesc(String edcSiteDesc) {
        this.edcSiteDesc = edcSiteDesc;
    }

    public List<XPdaComponentBean> getxPdaComponents() {
        return xPdaComponents == null ? new ArrayList<>() : xPdaComponents;
    }

    public void setxPdaComponents(List<XPdaComponentBean> xPdaComponents) {
        this.xPdaComponents = xPdaComponents;
    }

    public List<DcModelBean> getXPdaDcModels() {
        return XPdaDcModels == null ? new ArrayList<>() : XPdaDcModels;
    }

    public void setXPdaDcModels(List<DcModelBean> XPdaDcModels) {
        this.XPdaDcModels = XPdaDcModels;
    }


    public String getEdcItemLineName() {
        return edcItemLineName == null ? "" : edcItemLineName;
    }

    public void setEdcItemLineName(String edcItemLineName) {
        this.edcItemLineName = edcItemLineName;
    }

    public String getDataType() {
        return dataType == null ? "" : dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getDcName() {
        return dcName == null ? "" : dcName;
    }

    public void setDcName(String dcName) {
        this.dcName = dcName;
    }

    public String getRange() {
        return range == null ? "" : range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public String getIsMandatory() {
        return isMandatory == null ? "" : isMandatory;
    }

    public void setIsMandatory(String isMandatory) {
        this.isMandatory = isMandatory;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.edcItemLineName);
        dest.writeString(this.dataType);
        dest.writeString(this.dcName);
        dest.writeString(this.range);
        dest.writeString(this.isMandatory);
        dest.writeString(this.minValue);
        dest.writeString(this.midValue);
        dest.writeString(this.maxValue);
        dest.writeString(this.isDestructive);
        dest.writeString(this.isAutoDc);
        dest.writeString(this.isShowRemark);
        dest.writeString(this.edcSampleType);
        dest.writeLong(this.edcItemCount);
        dest.writeString(this.edcItemDesc);
        dest.writeLong(this.edccomponentCount);
        dest.writeString(this.edcCompDesc);
        dest.writeLong(this.edcSiteCount);
        dest.writeString(this.edcSiteDesc);
        dest.writeList(this.xPdaComponents);
        dest.writeList(this.XPdaDcModels);
    }

    public XEdcItemSetLinesBean() {
    }

    protected XEdcItemSetLinesBean(Parcel in) {
        this.edcItemLineName = in.readString();
        this.dataType = in.readString();
        this.dcName = in.readString();
        this.range = in.readString();
        this.isMandatory = in.readString();
        this.minValue = in.readString();
        this.midValue = in.readString();
        this.maxValue = in.readString();
        this.isDestructive = in.readString();
        this.isAutoDc = in.readString();
        this.isShowRemark = in.readString();
        this.edcSampleType = in.readString();
        this.edcItemCount = in.readLong();
        this.edcItemDesc = in.readString();
        this.edccomponentCount = in.readLong();
        this.edcCompDesc = in.readString();
        this.edcSiteCount = in.readLong();
        this.edcSiteDesc = in.readString();
        this.xPdaComponents = new ArrayList<XPdaComponentBean>();
        in.readList(this.xPdaComponents, XPdaComponentBean.class.getClassLoader());
        this.XPdaDcModels = new ArrayList<DcModelBean>();
        in.readList(this.XPdaDcModels, DcModelBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<XEdcItemSetLinesBean> CREATOR = new Parcelable.Creator<XEdcItemSetLinesBean>() {
        @Override
        public XEdcItemSetLinesBean createFromParcel(Parcel source) {
            return new XEdcItemSetLinesBean(source);
        }

        @Override
        public XEdcItemSetLinesBean[] newArray(int size) {
            return new XEdcItemSetLinesBean[size];
        }
    };
}
